FROM mysql:5.7
#设置免密登录
ENV MYSQL_ALLOW_EMPTY_PASSWORD yes
#将所需要文件放到容器中
COPY setup.sh /home/mysql/setup.sh
COPY ./sql-scripts/schema.sql /home/mysql/schema.sql
COPY ./sql-scripts/privileges.sql /home/mysql/privileges.sql
COPY start.sh /home/mysql/start.sh

#run sh /home/mysql/setup.sh

CMD sh /home/mysql/start.sh



